package com.kotasoft.iip.model;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Message<T> implements Serializable {

	private String message;
	private T payload;

	public Message() {
	}

	public Message(String message, T payload) {
		this.message = message;
		this.payload = payload;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getPayload() {
		return payload;
	}

	public void setPayload(T payload) {
		this.payload = payload;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Message [message=");
		builder.append(message);
		builder.append(", payload=");
		builder.append(payload);
		builder.append("]");
		return builder.toString();
	}

}
